﻿namespace API.Middlewares
{
    public static class HeartbeatWebSocketMiddlewareExtensions
    {
        public static IApplicationBuilder UseHeartbeatWebSocket(this IApplicationBuilder builder, TimeSpan heartbeatInterval)
        {
            return builder.UseMiddleware<HeartbeatWebSocketMiddleware>(heartbeatInterval);
        }
    }
}
